.class Lcom/instagram/android/creation/b/bh;
.super Ljava/lang/Object;
.source "FilterFragment.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/instagram/android/creation/b/al;


# direct methods
.method constructor <init>(Lcom/instagram/android/creation/b/al;)V
    .locals 0
    .parameter

    .prologue
    .line 359
    iput-object p1, p0, Lcom/instagram/android/creation/b/bh;->a:Lcom/instagram/android/creation/b/al;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4
    .parameter "v"

    .prologue
    const/4 v2, 0x0

    .line 362
    invoke-virtual {p1, v2}, Landroid/view/View;->setEnabled(Z)V

    .line 365
    iget-object v0, p0, Lcom/instagram/android/creation/b/bh;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->g(Lcom/instagram/android/creation/b/al;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 366
    iget-object v0, p0, Lcom/instagram/android/creation/b/bh;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->l(Lcom/instagram/android/creation/b/al;)V

    .line 371
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/creation/b/bh;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->i(Lcom/instagram/android/creation/b/al;)Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->getRenderMode()I

    move-result v0

    const/4 v1, 0x1

    if-ne v0, v1, :cond_1

    .line 372
    iget-object v0, p0, Lcom/instagram/android/creation/b/bh;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->i(Lcom/instagram/android/creation/b/al;)Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;

    move-result-object v0

    invoke-virtual {v0, v2}, Lcom/instagram/creation/photo/gl/FilterGLSurfaceView;->setRenderMode(I)V

    .line 373
    iget-object v0, p0, Lcom/instagram/android/creation/b/bh;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->j(Lcom/instagram/android/creation/b/al;)Landroid/os/Handler;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/creation/b/bi;

    invoke-direct {v1, p0}, Lcom/instagram/android/creation/b/bi;-><init>(Lcom/instagram/android/creation/b/bh;)V

    const-wide/16 v2, 0x64

    invoke-virtual {v0, v1, v2, v3}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    .line 382
    :goto_0
    return-void

    .line 380
    :cond_1
    iget-object v0, p0, Lcom/instagram/android/creation/b/bh;->a:Lcom/instagram/android/creation/b/al;

    invoke-static {v0}, Lcom/instagram/android/creation/b/al;->m(Lcom/instagram/android/creation/b/al;)V

    goto :goto_0
.end method
